<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<link rel="stylesheet" type="text/css" href="js/uploadify/uploadify.css"/>
		<style type="text/css">
			#t2,#t3,#t4,#t5{
				display: none;
			}
			.hide{
				display: none;
			}
			.active{
				display: block;
			}
		</style>
	</head>
	<body>
		<div class="content">
			<a href="http://insight-movie-database.gdinsight.com"><img class="logo" src="img/logo.jpg"/></a>
			<h1 id="t1">需求表单(插画制作)</h1>
			<h1 id="t2">需求表单(人物拍摄)</h1>
			<h1 id="t3">需求表单(静物拍摄)</h1>
			<h1 id="t4">需求表单(三维制作)</h1>
			<h1 id="t5">需求表单(PPT制作)</h1>
			<p id="email" email='' style="display: none;"></p>
			<a href="http://insight-movie-database.gdinsight.com" style='float: right;margin-top: -9px;'>返回首页</a>
			<div class="underline"></div>
			<form action="" method="post">
				<div class="type">
					<div class="title fl">需求类型&nbsp;&nbsp;&nbsp;</div>
					<div class="fl">
						<a  class="type_a pointer active_t" onclick="Tab(1)">插画制作</a>
						<a  class="type_a pointer" onclick="Tab(2)">人物拍摄</a>
						<a  class="type_a pointer" onclick="Tab(3)">静物拍摄</a>
						<a  class="type_a pointer" onclick="Tab(4)">三维制作</a>
						<a  class="type_a pointer" onclick="Tab(5)">PPT制作</a>
					</div>
					<br />
				</div>
				<!-- 插画制作 -->
				<div id="d1" number="1" class="active">
					<p class="order_code hide" name="301"></p>
					<div class="time">
						<p class='ord_title'>
							<span>订单标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="order_title" id="" value="" class="post" />	
						</p>
						
						<div class="input_25 fl">
							<span>插画尺寸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="works_size" id="" value="" class="post" />	
						</div>
						
						<div class="input_25 fl">
							<span>插画精度&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="accuracy" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl">
							<span>插画颜色&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<select value="黑白" name="color" class="post">
								<option value="黑白">黑白</option>
	          					<option value="彩色">彩色</option>
							</select>
						</div>
						
						<div class="input_25 fl margin_b20">
							<span>插画数量&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="works_num" id="" value="" class="post"/>	
						</div>
						
						<div class="input_25 fl">
							<span>完稿时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="finish_time" id="finish_time1" id="" value="" class="post"/>	
						</div>
						<div class="input_25 fl" style="margin-bottom: 50px;">
							<span>供应商推荐&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="supplier" id="" value="" class="post">	
						</div>						
						<div class="clear"></div>
						
						
					</div>
					
					<div class="fl">Layout提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
					<div class="fl"><input class=""  id="layout1" name="layout" type="file" multiple="true" /></div>
					<p class="fl red">（*请上传jpg、gif、png、jpeg、ppt、pdf格式的文件）</p>
					<div class="clear"></div>
					<div class="layout1 img_path margin_b20">
						<div class="clear"></div>
					</div>
					
					<div class="fl">参考提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
					<div class="fl"><input class=""  id="reference1" name="reference" type="file" multiple="true" /></div>
					<p class="fl red">（*请上传jpg、gif、png、jpeg、ppt、pdf格式的文件）</p>
					<div class="clear"></div>
					<div class="reference1 img_path margin_b20">
						<div class="clear"></div>
					</div>
				</div>
				
				<!-- 人物拍摄 -->
				<div id="d2" number="2" class="hide">
					<p class="order_code hide" name="302"></p>
					<p class='ord_title'>
						<span>订单标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<input type="text" name="order_title" id="" value="" class="post" />	
					</p>
					<div class="time">
						<div class="input_25 fl">
							<span>拍摄时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="film_time" id="film_time2" value="" class="post" />	
						</div>
						
						<div class="input_25 fl ">
							<span>费用预算&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="budget" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl">
							<span>完稿时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="finish_time" id="finish_time2" value="" class="post" />	
						</div>
						<div class="clear"></div>
					</div>
					<div class="time">
					
						<div class="input_25 fl">
							<span>供应商推荐&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="supplier" id="" value="" class="post" />	
						</div>
	
						<div class="input_25 fl">
							<span>拍摄地点</span>
							<input type="text" name="filming_location" id="" value="" class="post" />
						</div>					
												
						<div class="input_25 fl" style='width: 32%;'>
							<span>模特使用权时间/用途/地区</span>
							<input type="text" name="expand_model" id="" value="" class="post" />
						</div>
						<div class="clear"></div>
					</div>	
					<div class="time">
						<div class="input_25" style='width: 32%;'>
							<span>如有修图，修图数量</span>
							<input type="text" name="expand_xiutu_num" id="" value="" class="post" />
						</div>
					</div>
					
					<div class="">提交拍摄方案（含layout，服装，道具，动作，调性参考等）</div>
					<p class="red">（*请上传jpg、gif、png、jpeg、ppt、pdf格式的文件）</p>
					<div class=""><input class=""  id="renwupaishe_1" name="reference" type="file" multiple="true" /></div>
					<div class="thumb img_path margin_b20">
						<div class="clear"></div>
					</div>
				</div>
				
				<div id="d3" number="3" class="hide">
					<p class="order_code hide" name="303"></p>
					<div class="time">
						<p class='ord_title'>
							<span>订单标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="order_title" id="" value="" class="post" />	
						</p>					
						<div class="input_25 fl">
							<span>拍摄时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="film_time" id="film_time3" value="" class="post" />	
						</div>
						
						<div class="input_25 fl ">
							<span>费用预算&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="budget" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl">
							<span>完稿时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="finish_time" id="finish_time3" value="" class="post" />	
						</div>
						<div class="clear"></div>
					</div>
						
					<div class="input_25" style="margin-bottom: 50px;">
						<span>供应商推荐&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<input type="text" name="supplier" id="" value="" class="post" />	
					</div>
					
					
					<div class="title fl">修图标准&nbsp;&nbsp;&nbsp;</div>
					<textarea name="content_1" rows="" cols="" class="post"></textarea>
					
					<div class="clear"></div>
					
					<div class="title fl">创意方案&nbsp;&nbsp;&nbsp;</div>
					<textarea name="content_2" rows="" cols="" class="post" placeholder="在这里输入你的创意方案（包含layout、道具、调性参考等）或直接上传你的方案。"></textarea>
					<div class="clear"></div>
					
					<div class="fl title">上传创意方案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
					<div class="fl"><input class=""  id="upload3" name="upload" type="file" multiple="true" /></div>
					<p class="fl red">（*请上传ppt、pptx格式的文件）</p>
					<div class="clear"></div>
					<div class="upload3 img_path time">
						<div class="clear"></div>
					</div>
				</div>
				<!-- 三维制作 -->
				<div id="d4" number="4" class="hide">
					<p class="order_code hide" name="304"></p>
					<div class="time">
						<p class='ord_title'>
							<span>订单标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="order_title" id="" value="" class="post" />	
						</p>						
						<div class="input_25 fl">
							<span>作品尺寸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="works_size" id="" value="" class="post" />	
						</div>
						
						<div class="input_25 fl ">
							<span>作品精度&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="accuracy" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl">
							<span>完稿时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="finish_time" id="finish_time4" value="" class="post" />	
						</div>
						
						<div class="input_25 fl">
							<span>作品数量&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="works_num" id="finish_time" value="" class="post" />	
						</div>
						<div class="clear"></div>
					</div>
						
					<div class="input_25" style="margin-bottom: 50px;">
						<span>供应商推荐&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<input type="text" name="supplier" id="" value="" class="post" />	
					</div>
					
					<div class="fl title margin_b20">品质参考&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
					<div class="fl"><input class=""  id="reference4" name="reference" type="file" multiple="true" /></div>
					<p class="fl red">（*请上传jpg、gif、png、jpeg、ppt、pdf格式的文件）</p>
					<div class="clear"></div>
					<div class="reference4 img_path margin_b20">
						<div class="clear"></div>
					</div>
					
					<div class="fl title">创意方案或产品角度规划&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
					<div class="fl"><input class=""  id="plan4" name="plan" type="file" multiple="true" /></div>
					<p class="fl red">（*请上传jpg、gif、png、jpeg、ppt、pdf格式的文件）</p>
					<div class="clear"></div>
					<div class="plan4 img_path ">
						<div class="clear"></div>
					</div>
				</div>
				
				<div id="d5" number="5" class="hide">
					<p class="order_code hide" name="305"></p>
					<div class="time">
						<p class='ord_title'>
							<span>订单标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="order_title" id="" value="" class="post" />	
						</p>						
						<div class="input_25 fl">
							<span>作品尺寸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="works_size" id="" value="" class="post" />	
						</div>
						
						<div class="input_25 fl ">
							<span>作品数量&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="works_num" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl">
							<span>完稿时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="finish_time" id="finish_time5" value="" class="post" />	
						</div>
						<div class="clear"></div>
					</div>
					
					<div class="fl title">素材资料&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
					<div class="fl"><input class=""  id="material" name="material" type="file" multiple="true" /></div>
					<p class="fl red">（*请上传jpg、gif、png、jpeg、ppt、pdf格式的文件）</p>
					<div class="clear"></div>
					<div class="material img_path time">
						<div class="clear"></div>
					</div>
					<div class="title fl">具体需求</div>
					<textarea name="content_1" rows="" cols="" class="post"></textarea>
				</div>
				
				<br />
				<input type="button" id="submit" value="提交需求" class="fr submit"/>
			</form>
		</div>
		
		
		<script src="jedate/jedate.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/uploadify/jquery.uploadify.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">	
			//登录检查
			$.ajax({
				type:"post",
				url:"./app/index.php?m=index&a=islogin",
				success:function(ret){
					if(ret.code == '101'){
						window.location.href='./login.html';
						return false;
					}
				}
			});
			function Tab(num)
			{
			    var i;
			    for(i=1;i<=5;i++)
			    {
			        if(i==num){
			        	document.getElementById("t"+i).style.display="block";
			        	$("#d"+i).addClass("active")
			         	$("#d"+i).removeClass("hide")
			        }else{
			         	document.getElementById("t"+i).style.display="none";
			        	$("#d"+i).addClass("hide")
			         	$("#d"+i).removeClass("active")
			        }
			           
			    }
			}
			
			
			var arr1 = [];
			var reference1 = [];
			var layout1 = [];
			var layout2 = [];
			//图片上传
			$(function() {
			    $('#reference1').uploadify({
			        'swf'      : './js/uploadify/uploadify.swf',    //指定上传控件的主体文件
			        'uploader' : './app/index.php?m=index&a=upload' ,   //指定服务器端上传处理文件
			        'fileTypeExts':'*.jpg;*.jpeg;*.png;*.gif;*.ppt;*.pptx;*.pdf;',
			        'buttonText'  : '上传',  //按钮文字
			        'method':'post',
			        'onUploadComplete':function(){
			        },
			        'onUploadSuccess': function (fileObj, data, response) {
			        	data = JSON.parse(data);
			        	arr1.push(data);
			        	var html = "";
			        	for(var i in arr1){
			        		html = "<img class='fl' src='."+arr1[i].path+"'>";
			        	}
			        	reference1.push(data.path);
			        	$(".reference1").prepend(html);
			        }
			    });
			});
			/* 插画 */
			$(function() {
			    $('#layout1').uploadify({
			        'swf'      : './js/uploadify/uploadify.swf',    //指定上传控件的主体文件
			        'uploader' : './app/index.php?m=index&a=upload' ,   //指定服务器端上传处理文件
			        'fileTypeExts':'*.jpg;*.jpeg;*.png;*.gif;*.ppt;*.pptx;*.pdf;',
			        'buttonText'  : '上传',  //按钮文字
			        'method':'post',
			        'onUploadComplete':function(){
			        },
			        'onUploadSuccess': function (fileObj, data, response) {
			        	data = JSON.parse(data);
			        	arr1.push(data);
			        	var html = "";
			        	for(var i in arr1){
			        		html = "<img class='fl' src='."+arr1[i].path+"'>";
			        	}
			        	layout1.push(data.path);
			        	$(".layout1").prepend(html);
			        }
			    });
			    /* 人物拍摄 */
			    $('#renwupaishe_1').uploadify({
			        'swf'      : './js/uploadify/uploadify.swf',    //指定上传控件的主体文件
			        'uploader' : './app/index.php?m=index&a=upload' ,   //指定服务器端上传处理文件
			        'fileTypeExts':'*.jpg;*.jpeg;*.png;*.gif;*.ppt;*.pptx;*.pdf;',
			        'buttonText'  : '上传',  //按钮文字
			        'method':'post',
			        'onUploadComplete':function(){
			        },
			        'onUploadSuccess': function (fileObj, data, response) {
			        	data = JSON.parse(data);
			        	arr1.push(data);
			        	layout2.push(data.path);
			        	after_upload(data,"#d2 .thumb",layout2)
			        }
			    });
			});
			
			
			
			var imgobj1 = {layout1,reference1};
			
			var imgobj2 = {layout2};
			
			var arr3=[];
			var upload3=[];
			//图片上传
			$(function() {
			    $('#upload3').uploadify({
			        'swf'      : './js/uploadify/uploadify.swf',    //指定上传控件的主体文件
			        'buttonText'  : '上传',  //按钮文字
			        'uploader' : './app/index.php?m=index&a=upload' ,   //指定服务器端上传处理文件
			        'fileTypeExts':'*.ppt;*.pptx;',
			        'method':'post',
			        'onUploadComplete':function(){
			        },
			        'onUploadSuccess': function (fileObj, data, response) {
			        	data = JSON.parse(data);
			        	arr3.push(data);
			        	var html = "<p>附件["+data.name+"]已上传成功。</p>";
			        	upload3.push(data.path);
			        	$(".upload3").prepend(html);
			        }
			    });
			});
			var imgobj3 = {upload3};
			
			
			var arr4=[];
			var reference4=[];
			var plan4=[];
			//图片上传
			$(function() {
			    $('#reference4').uploadify({
			        'swf'      : './js/uploadify/uploadify.swf',    //指定上传控件的主体文件
			        'uploader' : './app/index.php?m=index&a=upload' ,   //指定服务器端上传处理文件
			        'buttonText'  : '上传',  //按钮文字
			        'fileTypeExts':'*.jpg;*.jpeg;*.png;*.gif;*.ppt;*.pptx;*.pdf;',
			        'method':'post',
			        'onUploadComplete':function(){
			        },
			        'onUploadSuccess': function (fileObj, data, response) {
			        	data = JSON.parse(data);
			        	arr4.push(data);
/* 			        	var html = "";
			        	for(var i in arr4){
			        		html = "<img class='fl' src='."+arr4[i].path+"'>";
			        	}
			        	$(".reference4").prepend(html); */
			        	reference4.push(data.path);
			        	after_upload(data,".reference4",reference4)
			        }
			    });
			});
			
			
			$(function() {
			    $('#plan4').uploadify({
			        'swf'      : './js/uploadify/uploadify.swf',    //指定上传控件的主体文件
			        'uploader' : './app/index.php?m=index&a=upload' ,   //指定服务器端上传处理文件
			        'method':'post',
			        'fileTypeExts':'*.jpg;*.jpeg;*.png;*.gif;*.ppt;*.pptx;*.pdf;',
			        'buttonText'  : '上传',  //按钮文字
			        'onUploadComplete':function(){
			        },
			        'onUploadSuccess': function (fileObj, data, response) {
			        	data = JSON.parse(data);
			        	arr4.push(data);
/* 			        	var html = "";
			        	for(var i in arr4){
			        		html = "<img class='fl' src='."+arr4[i].path+"'>";
			        	}
			        	$(".plan4").prepend(html); */
			        	plan4.push(data.path);
			        	after_upload(data,".plan4",plan4)
			        }
			    });
			});
			
			var imgobj4 = {reference4,plan4};
			
			var arr5=[];
			var material=[];
			//图片上传
			$(function() {
			    $('#material').uploadify({
			        'swf'      : './js/uploadify/uploadify.swf',    //指定上传控件的主体文件
			        'uploader' : './app/index.php?m=index&a=upload' ,   //指定服务器端上传处理文件
			        'buttonText'  : '上传',  //按钮文字
			        'fileTypeExts':'*.jpg;*.jpeg;*.png;*.gif;*.ppt;*.pptx;*.pdf;',
			        'method':'post',
			        'onUploadComplete':function(){
			        },
			        'onUploadSuccess': function (fileObj, data, response) {
			        	data = JSON.parse(data);
/* 			        	var html = "";
			        	arr5.push(data);
			        	for(var i in arr5){
			        		html = "<img class='fl' src='."+arr5[i].path+"'>";
			        	}
			        	$(".material").prepend(html); */
			        	material.push(data.path);
			        	after_upload(data,".material",material)
			        }
			    });
			});
			var imgobj5 = {material}; 
			
			
			jeDate({
				dateCell:"#finish_time1",//
				isinitVal:true,
				format:"YYYY-MM-DD",
			})
			jeDate({
				dateCell:"#film_time2",//isinitVal:true,
				format:"YYYY-MM-DD"
			})
			
			jeDate({
				dateCell:"#finish_time2",//isinitVal:true,
				format:"YYYY-MM-DD"
			})
			jeDate({
				dateCell:"#film_time3",//isinitVal:true,
				format:"YYYY-MM-DD"
			})
			
			jeDate({
				dateCell:"#finish_time3",//isinitVal:true,
				format:"YYYY-MM-DD"
			})
			jeDate({
				dateCell:"#finish_time4",//isinitVal:true,
				format:"YYYY-MM-DD"
			})
			jeDate({
				dateCell:"#finish_time5",//isinitVal:true,
				format:"YYYY-MM-DD"
			})
			
			$("#submit").click(function(){
				var num = $(".active").attr("number");
				if(num == "1"){
					data_post(imgobj1)
				}else if(num == "2"){
					data_post(imgobj2)
				}else if(num == "3"){
					data_post(imgobj3)
				}else if(num == "4"){
					data_post(imgobj4)
				}else if(num == "5"){
					data_post(imgobj5)
				}
			})
			
			$(".pointer").click(function(){
				$(this).addClass("active_t")
				$(this).siblings().removeClass("active_t")
			})
		</script>
	</body>
</html>